<template>
  <div id="app">
    <!-- <router-link to="/home"></router-link> -->
    <transition>
       <router-view/>
    </transition>
    <nav class="mui-bar mui-bar-tab">
				<router-link to="/" class="mui-tab-item mui-active" >
					<span class="mui-icon mui-icon-home"></span>
					<span class="mui-tab-label">首页</span>
				</router-link>
				<router-link to="/member" class="mui-tab-item" >
					<span class="mui-icon mui-icon-contact"></span>
					<span class="mui-tab-label">会员</span>
				</router-link>
				<router-link to="/shopCart" class="mui-tab-item" >
					<span class="mui-icon mui-icon-extra mui-icon-extra-cart"><span class="mui-badge">9</span></span>
					<span class="mui-tab-label">购物车</span>
				</router-link>
				<router-link to="/search" class="mui-tab-item" >
					<span class="mui-icon mui-icon-search"></span>
					<span class="mui-tab-label">搜索</span>
				</router-link>
			</nav>

  </div>
</template>

<script>
export default {
  name: "App"
};
</script>

<style>
.v-enter {
  transform: translateX(100%);
  opacity: 0;
}
.v-leave-to {
  transform: translateX(-100%);
  opacity: 0;
  position: absolute;
}
.v-leave-active,
.v-enter-active {
  transition: all 0.5s ease;
}
</style>
